package com.lcn.comm.domain;

import com.lcn.comm.annotation.TxTransaction;

/**
 * <p>类说明</p>
 *
 * @author 张峰 zfvip_it@163.com
 * @create: 下午9:17
 */
public class TxTransactionInfo {

    /**
     * 事务组id
     */
    private String groupId;

    /**
     * 请求对象
     */
    private TxRequest txRequest;

    /**
     * 分布式事务注解
     */
    private TxTransaction txTransaction;

    /**
     *
     */
    private TxTransactionLocal txTransactionLocal;

    public TxTransactionInfo(TxTransaction txTransaction, TxTransactionLocal txTransactionLocal, TxRequest txRequest, String groupId) {
        this.txTransaction = txTransaction;
        this.txTransactionLocal = txTransactionLocal;
        this.txRequest = txRequest;
        this.groupId = groupId;
    }


    public String getGroupId() {
        return groupId;
    }

    public TxRequest getTxRequest() {
        return txRequest;
    }

    public TxTransaction getTxTransaction() {
        return txTransaction;
    }

    public TxTransactionLocal getTxTransactionLocal() {
        return txTransactionLocal;
    }

}
